/**
 * Created by XQ on 2017/5/31.
 */
app.config(["$routeProvider",function ($routeProvider) {
    $routeProvider
        .when("/homePage",{
            templateUrl:"../html/homePage.html",
            controller:"homePageCtrl",
            css:"../css/homePage.css"
        })
        .when("/myNote",{
            templateUrl:"../html/myNote.html",
            controller:"myNoteCtrl",
            css:"../css/myNote.css"
        })
        .when("/consumingCenter",{
            templateUrl:"../html/consumingCenter.html",
            controller:"consumingCenterCtrl",
            css:"../css/consumingCenter.css"
        })
        .when("/personalCenter",{
            templateUrl:"../html/personalCenter.html",
            controller:"personalCenterCtrl",
            css:"../css/personalCenter.css"
        })
        .when("/logIn",{
            templateUrl:"../html/logIn.html",
            controller:"logInCtrl",
            css:"../css/logIn.css"
        })
        .when("/register",{
            templateUrl:"../html/register.html",
            controller:"registerCtrl",
            css:"../css/register.css"
        })
        .when("/addRecord",{
            templateUrl:"../html/addRecord.html",
            controller:"addRecordCtrl",
            css:"../css/addRecord.css"
        })
        .when("/addBill",{
            templateUrl:"../html/addBill.html",
            controller:"addBillCtrl",
            css:"../css/addBill.css"
        })
        .when("/personalData",{
            templateUrl:"../html/personalData.html",
            controller:"personalDataCtrl",
            css:"../css/personalData.css"
        })
        .when("/tab",{
            templateUrl:"../html/tab.html"
        })


        .otherwise("/logIn")
}])